import { HTTP } from '../utils/http'

class ProductService extends HTTP {
  getProductList(filter) {
    return this.get({ url: '/product', data: filter, needAuth: false })
  }

  getProductById(id) {
    return this.get({ url: `/product/${id}`, data: {}, needAuth: false })
  }
}

export { ProductService }
